Jim Schweder
01/11/2024, 5:40 PMDavid B
01/11/2024, 8:12 PM<#list>
directive to list it in your templateDavid B
01/11/2024, 8:13 PM[{my_field1:"1A", my_field2:"1B"},
{my_field1:"2A", my_field2:"2B"}]
David B
01/11/2024, 8:15 PM<#assign my_seq = custfield_jsonfield?eval_json>
<#list my_seq as x>
${x.my_field1}
${x.my_field2}
</#list>
David B
01/11/2024, 8:19 PMN/render
module, you can/should use TemplateRenderer.addCustomDataSource() directly on your object instead of putting it into a field with JSON.stringify()
but if you're just printing with one of the native print buttons the ?eval_json approach will work fineJim Schweder
01/11/2024, 10:09 PMDavid B
01/11/2024, 10:09 PMJim Schweder
01/16/2024, 1:11 AMDavid B
01/16/2024, 1:12 AMJim Schweder
01/16/2024, 1:13 AMJim Schweder
01/18/2024, 4:07 PM<#assign my_list = [] />
<#if recond?has_content>
<#list record.item as item>
<#assign my_list = my_list + [{my_item:"${item.item}", my_description:"${item.description}"}] />
</#list>
</#if>
<#list my_list as lines>${lines.my_item}</#list>
David B
01/21/2024, 11:49 PMrecord.item
again and print there?
It might be that you've just used a trivial example, but I'm not seeing the use-case for what you're attemptingJim Schweder
01/22/2024, 12:38 AM